package com.example.demo.mingling;

public class LightoffComand implements Comand {

    public LightoffComand(LightReceiver lightReceiver) {
        this.lightReceiver = lightReceiver;
    }

    LightReceiver lightReceiver;


    @Override
    public void excute() {
        lightReceiver.off();
    }

    @Override
    public void undo() {
        lightReceiver.on();
    }
}
